<div ng-controller="ConfirmOrderCtrl as vm">
  <h2>确认交单</h2>
  <div class="well">
    <form class="form-horizontal" ng-submit="vm.confirmOrder()">
    <div class="control-group">
        <label class="control-label">*交单手续</label>
        <!-- File Upload -->
        <div class="controls">
            <input type="text" id="jiaodan" placeholder="" class="input-large" style="display: none"/>
            <image id="jiaodanImg" style="display: none;" width="30" height="40"></image>
            <a style="cursor: hand" onclick="openUpload('jiaodan')">上传文件</a>
        </div>
      </div>
      <button class="btn btn-primary" ><i class="icon-save"></i> 确认交单</button>
    </form>
  </div>
</div>
<script>
        function openUpload(inputid){
            var url = "../views/upload.html?id="+ inputid;
            var iWidth=400; //弹出窗口的宽度;
            var iHeight=300; //弹出窗口的高度;
            var iTop = (window.screen.availHeight-30-iHeight)/2; //获得窗口的垂直位置;
            var iLeft = (window.screen.availWidth-10-iWidth)/2; //获得窗口的水平位置;
            window.open(url,'uploadwindow','height='+iHeight+',width='+iWidth+',top='+iTop+',left='+ iLeft +',toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no');
        }
    </script>